package com.fhz.mvvm.di

import com.fhz.mvvm.api.YaoServiceApi
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Inject
import javax.inject.Singleton

/**
 * 时间:2023/3/28
 * @author Mr.Feng
 * 简述: 提供一个单例服务
 */
@InstallIn(SingletonComponent::class)
@Module
class NetworkModule {

    @Singleton
    @Provides
    fun providerYaoService(): YaoServiceApi {
        return YaoServiceApi.create()
    }
}